import "./style.css";
import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import detectVersion from "../lib/main";

detectVersion({
  open: true,
  duration: 5000,
  func: () => {
    const result = confirm("有新功能发布，请点击确定刷新页面！");
    if (result) {
      location.reload(); //强制刷新 清除缓存
    }
  },
});
const app = createApp(App);
app.use(ElementPlus);
app.mount("#app");
